<template>
  <view class="content">
       
  
    <view class="tmconten">
      <view>
     <uni-icons type="icon-tuanduiguanli" size="30"></uni-icons>
        <view style="margin-left: 11px;">
          <p style="margin: 0px; color: #595959">团队总人数</p>
          <p style="margin: 0px; color: #F11;">{{ owner.num }}</p>
        </view>
      </view>
      <view>
       <uni-icons type="icon-qiandai" size="30"></uni-icons>
        <view style="margin-left: 11px;">
          <p style="margin: 0px; color: #595959">业务收益</p>
          <p style="margin: 0px; color: #F11;">
            ￥{{ owner.profit }}
          </p>
        </view>
      </view>
    </view>
 
      <view class="listconten"
	     @click="navTo('/pages/owner/tmrecord?name=direct')">
        <span > 直属业主</span>

       <uni-icons type="icon-fanhui2" size="30"  color="#606266"></uni-icons>
      </view>
  
 
      <view class="listconten"
           style="margin-top: 1px; border-radius: 0px 0px 5px 5px;"
		   @click="navTo('/pages/owner/tmrecord?name=indirect')">
		   
		   
        <span> 间属业主</span>

    <uni-icons type="icon-fanhui2" size="30" color="#606266"></uni-icons>
      </view>
 
  </view>
</template>

<script>

import uniIcons from '../../ed-icons/ed-icons.vue'
import { getOne, msg } from '../../api/publicapi.js'
	export default {
		components: {
		
			uniIcons
		},
  data () {
    return {
      owner: {}
    }
  },
  onLoad: function (option) {
     console.log(option)
  },
  components: {},

  onShow () {
	this.gettm()
  },
  methods: {
	navTo(url){
		uni.navigateTo({
			url
		})  
	},
	gettm(){
		getOne('front/owner/getownernum').then(res => {
			this.owner = res
			// console.log(res.data)
		})
	}
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style >
.content {
  font-family: PF;
}

.top {
  
  font-size: 18px;
  padding: 5px 0px 8px;
}

.tmconten {
  font-family: PF;
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
  padding: 10px;
}

.tmconten > view {
  height: 4em;
  width: 12em;
  font-family: PF;
  /* border: 1px solid #ccc; */
  display: flex;
  align-items: center;
  /* text-align: center; */
  border-radius: 5px;
  box-shadow: 0px 0px 2px #c9c9c9;
  background-color: #fff;
  margin-left: 10px;
  margin-right: 10rpx;
  justify-content: center;
}

.listconten {
  margin-left: 0.5em;
  margin-right: 0.5em;
  border-radius: 5px 5px 0px 0px;
  box-shadow: 0px 0px 2px #c9c9c9;
  background-color: #fff;
  padding: 10px;
  color: #595959;
  margin-top: 1em;
  display: flex;
  justify-content: space-between;
  font-family: PF;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 17px;
}


</style>
